package com.ctshk.rpc.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 加幅有效期
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-05
 */
@Data
@ApiModel(value="AirportExpressIncreaseStrategyDateReq对象", description="加幅有效期")
public class AirportExpressIncreaseStrategyDateReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "加幅策略id")
    private Long increaseStrategyId;

    @NotNull(message = "有效期开始时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期开始时间")
    private LocalDate dateBegin;

    @NotNull(message = "有效期开始时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期结束时间")
    private LocalDate dateEnd;

}
